<?php

/**
 * O2O团购PC版本
 * ============================================================================
 * * 版权所有 2009-2016 郑州司科计算机科技有限公司，并保留所有权利。
 * 购买网址: http://www.jzphp.com；
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
  * 咨询电话：400-823-0371 QQ：313999875
 * ============================================================================
 * $Author: zzsike $
 * $Time 2016-02-03 sammy $
*/


require_once(dirname(dirname(dirname(__FILE__))) . '/app.php');

need_manager();
need_auth('order');
	$payservice = array(
		'alipay' => '支付宝',
		'tenpay' => '财付通',
		'chinabank' => '网银在线',
		'credit' => '余额付款',
		'cash' => '线下支付',
	);
	$paystate = array(
		'unpay' => '<font color="green">未付款</font>',
		'pay' => '<font color="red">已付款</font>',
	);
	$option_refund = array(		'credit' => '退款到账户余额',
		'online' => '其他途径已退款',	);
		
		
		
		
		
		
		
		
		
		
		
		
	$package_id= abs(intval($_GET['package_id']));
	$option_express = option_category('express');
	$order = Table::Fetch('order', $package_id,'pakageid');
	
	$conditionla = array( 'state'=>'pay',
	'flag' => 0,
	'pakageid' => $package_id, );
	$orders = DB::LimitQuery('order', array(
	'condition' =>$conditionla,
		'order' => 'ORDER BY id ASC',
));	
	
		$team_ids = Utility::GetColumn($orders, 'team_id');
$teams = Table::Fetch('team', $team_ids);
foreach($teams AS $tid=>$one){
	team_state($one);
	$teams[$tid] = $one;}
    $cart = Table::Fetch('cart', $order['cartid']);
	$user = Table::Fetch('user', $order['user_id']);
include template('manage_goods_shipping');
